Evaluating the Efficiency of Bilateral Filter
نویسندگان
چکیده
Bilateral filtering is a simple, non-iterative scheme for texture removal and edge-preserving and noise-reducing smoothing filter. The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels. This weight is based on a Gaussian distribution. Thus noise is averaged and signal strength is preserved. Performance parameters of bilateral filter have been evaluated. The design and implementation is done in MATLAB using image processing toolbox. The comparison has shown that the bilateral is quite effective for random and Gaussian noise KeywordsFiltering, noise, gaussian noise, texture, GUI, artifact, compression INTRODUCTION A bilateral filter is non-linear, edge-preserving and noise-reducing smoothing filter[1]. The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution. This preserves sharp edges by systematically looping through each pixel and adjusting weights to the adjacent pixels accordingly[2].The bilateral filter is defined as: where: Iis the filtered image; I is the original input image to be filtered; X are the coordinates of the current pixel to be filtered; is the window cantered in x; fr is the range kernel for smoothing differences in intensities. This function can be a Gaussian function; gs is the spatial kernel for smoothing differences in coordinates. This function can be a Gaussian function. Gaussian low-pass filtering computes a weighted average of pixel values in the neighbourhood, in which the weights decrease with distance from the neighbourhood centre. However, such an averaging consequently blurs the image. How can we prevent averaging across edges, while still averaging within smooth regions? Bilateral filtering is a simple, non-iterative scheme for edge-preserving smoothing. The basic idea underlying bilateral filtering is to do in the range of an image what traditional filters do in its domain[7],[10]. THE GAUSSIAN CASE A simple and important case of bilateral filtering is shift-invariant Gaussian filtering, in which both the closeness function c and the similarity function s are Gaussian functions of the Euclidean distance between their arguments [4].More specifically, c is symmetric. where is the Euclidean distance. METHODOLOGY USED The following flowchart gives the procedure of the bilateral filtering algorithm with an image f(x,y). International Journal of Engineering Research and General ScienceVolume 2, Issue 5, August – September 2014 ISSN 2091-2730 277 www.ijergs.org Fig.1 Bilateral filter algorithm TEST BED The following table shows the experimental images related to the project with their size and type of format. TABLE X IMAGES USED IN SIMULATION S.No. TITLE OF THE IMAGE SIZE FORMAT 1. Colg1 2.05 MB JPG 2. 2 83.3 KB JPG 3. Sim1 2.14 MB JPG 4. Mandrill 31.6 KB JPG 5. fruits 988 KB JPG PERFORMANCE PARAMETERS A good objective quality measure should reflect the distortion on the image well due to, for example, blurring, noise, compression, and sensor inadequacy. Such measures could be instrumental in predicting the performance of vision-based algorithms such as feature extraction, image-based measurements, detection, tracking, and segmentation, etc., tasks. Quantitative measures for image quality can be classified according to two criteria: 1. number of images used in the measurement; 2. nature or type of measurement. According to the first criterion, the measures are divided into two classes: univariate and bivariate. A univariate measure uses a single image, whereas a bivariate measure is a comparison between two images. A number of measures have been defined to determine the closeness of the degraded and original image fields. On the basis of this a study is done on the following measures and analysed. 1. Pixel difference-based measures: (eg. the Mean Square Error and Maximum Difference). 2. Correlation-based measures: A variant of correlation based measures can be obtained by considering the absolute mean and variance statistics (eg. Structural Correlation / Content, Normalized Cross Correlation) [1],[5]. A. Mean Square Error In the image coding and computer vision literature, the most frequently used measures are deviations between the original and coded images of which the mean square error (MSE) or signal to noise ratio (SNR) being the most common measures. The reasons for these metrics widespread popularity are their mathematical tractability and the fact that it is often straightforward to design systems that minimize the MSE but cannot capture the artifacts like blur or blocking artifacts. The effectiveness of the coder is optimised by having the minimum MSE at a particular compression and MSE is computed using the following equation:Input image f(x,y) Define w= half width sigma1=gaussian distance weights sigma2=gaussian intensity weights Add gaussian noise to input image f(x,y) Calculate Gaussian Distance by G = exp(-(X.^2+Y.^2)/(2*sigma_d^2)) Calculate Itensity weights by H = exp(-(I-A(i,j)).^2/(2*sigma_r^2) Apply filtering values on noisy image by F = H*G((iMin:iMax)i+w+1,(jMin:jMax)-j+w+1) get the resultant filtered as final output image International Journal of Engineering Research and General ScienceVolume 2, Issue 5, August – September 2014 ISSN 2091-2730 278 www.ijergs.org B. Peak Signal – to – Noise-Ratio Larger SNR and PSNR indicate a smaller difference between the original (without noise) and reconstructed image. The main advantage of this measure is ease of computation but it does not reflect perceptual quality. An important property of PSNR is that a slight spatial shift of an image can cause a large numerical distortion but no visual distortion and conversely a small average distortion can result in a damaging visual artifact, if all the error is concentrated in a small important region[12].This metric neglects global and composite errors PSNR is calculated using the following equation: C. Average Difference A lower value of Average Difference (AD) gives a “cleaner” image as more noise is reduced and it is computed using following equation: D. Maximum Difference Maximum difference (MD) is calculated using the given equation and it has a good correlation with MOS for all tested compression techniques so this is preferred as a very simple measure as a reference for measuring compressed picture quality in different compression systems. Large value of MD means that the image is of poor quality. SIMULATION RESULTS The bilateral filtering algorithm is applied to the experimental images which are displayed in GUI(Graphic User Interface).It has „LOAD‟ button to browse the image, „APPLY‟ button to apply filtering action, „CLOSE‟ button for closing the GUI window. The following snapshots show the simulation results. Fig. 2 Applying filtering algorithm Fig. 3 Filtered image after applying bilateral filtering Efficiency parameters i.e. values obtained from the bilateral filtering action applied on image no.1 from table 1.1 International Journal of Engineering Research and General ScienceVolume 2, Issue 5, August – September 2014 ISSN 2091-2730 279 www.ijergs.org Fig. 4 performance parameters On comparison with other (median) filter, the values obtained for the same image: Fig. 5 (contd.) performance parameters TABLE XII EFFICIENCY PARAMETERS S.No. PARAMETER BILATERAL FILTER MEDIAN FILTER 1. Mean square error 0.005
منابع مشابه
تاثیر فیلتر تند شنی بر کارایی حذف فلزات مس و روی در حضور غلظت های متفاوت فسفات
Backgrounds and Objectives: Due to copper and zinc elements toxicity, a greatly attention to removal of those in order to reduce environmental pollution exist. This experiment was conducted to investigate the study of the effect of gravity single layer rapid sand filter on heavy metals (zinc and copper) removal efficiency in aquatic condition in different phosphate concentration.Materials and M...
متن کاملEvaluating the efficiency of a baffled-filter system with sponge media on removal of turbidity, microbial agents, and total organic carbon from water
Background and Objective: Access to safe water is critical for protecting human health. Turbidity is one of the main physical parameters that affect the quality of water from both health and aesthetical points of view. Therefore, waters should be treated based on the standards set for turbidity before consumption. This study was performed to determine the performance of a bench-scale baffled fi...
متن کاملStructure-oriented bilateral filtering of seismic images
Bilateral filtering is widely used to enhance photographic images, but in most implementations is poorly suited to seismic images. A bilateral filter consists of two (domain and range) filter kernels. By replacing the domain kernel with a smoothing filter that conforms to image structures, we obtain a bilateral filter suitable for seismic image processing. Examples and comparison with conventio...
متن کاملA Robust Image Denoising Technique in the Contourlet Transform Domain
The contourlet transform has the benefit of efficiently capturing the oriented geometrical structures of images. In this paper, by incorporating the ideas of Stein’s Unbiased Risk Estimator (SURE) approach in Nonsubsampled Contourlet Transform (NSCT) domain, a new image denoising technique is devised. We utilize the characteristics of NSCT coefficients in high and low subbands and apply SURE sh...
متن کاملEffect of Filter Inhomogeneity on Deep-Bed Filtration Process – A CFD Investigation
Aerosol filtration in fibrous filters is one of the principal methods of removal of solid particles from the gas stream. The classical theory of depth filtration is based on the assumption of existing single fiber efficiency, which may be used to the recalculation of the overall efficiency of the entire filter. There are several reasons for inappropriate estimation of the single fi...
متن کامل